package bit_poi.dao;

import bit_poi.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserClassMapper {
    User getUserInfoByPhoneNum(String phoneNum);

    /**
     * 查询某个学生id在主班classId下，某节课queryTime的到课情况
     * @param userId
     * @param classId
     * @param queryTime
     * @return 0 : 到课
     *         1 : 缺勤
     */
    String queryStudentIsAbsent(@Param("userId") Integer userId, @Param("classId") Integer classId, @Param("queryTime") String queryTime);
}
